import prisma from "@/src/db/db";
import { NextResponse } from "next/server";

export const GET = async (req, { params }) => {
  const res = await prisma.product.findUnique({
    where: { id: params.id },
  });
  return NextResponse.json(res);
};
